extends "../aierdeliqi-1/aierdeliqi-1.gd"

func _extInit():
	._extInit()
	lv = 2
	addSkill("降低全体敌人20点机动", "重力陷阱")

var index = 0
func _upS():
	._upS()
	index += 1
	if index >= 3:
		index = 0
		for i in getAllChas(1):
			if i.hasBuff("b_aierdeliqi2") == null:
				castBuff(i, b_aierdeliqi2.new())

class b_aierdeliqi2:
	extends "../../../azurlane_ctrl/AzurBuff.gd"
	func _init():
		attInit()
		id = "b_aierdeliqi2"
		buffName = "重力陷阱"
		isNegetive = true
	func _connect():
		if casCha.upgraded == 1:
			att.dod = -40
		else:
			att.dod = -20
